<!-- HTML header for doxygen 1.8.18-->
<!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=9" />
    <meta name="generator" content="Doxygen 1.8.16" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <title>LEAF: LEAF/Inc/leaf-distortion.h Source File</title>
    <link href="tabs.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="jquery.js"></script>
    <script type="text/javascript" src="dynsections.js"></script>
    <script type="text/javascript" src="../js/iframeResizer.contentWindow.min.js"></script>
    <!-- <script src="/js/template.js"></script> -->
     <link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  $(document).ready(function() { init_search(); });
/* @license-end */
</script> 
    <link href="doxygen.css" rel="stylesheet" type="text/css" />
    <link href="customdoxygen.css" rel="stylesheet" type="text/css"/>
    <!-- <link rel="stylesheet" href="/css/tachyons.css" type="text/css" /> -->
</head>
<body class="bg-washed-green black-70 ph0 sans-serif" onload="iframeResizePipe()">
    <div>
        <!-- do not remove this div, it is closed by doxygen! -->
        <div id="titlearea">
            <table cellspacing="0" cellpadding="0">
                <tbody>
                    <tr>
                    </tr>
                </tbody>
            </table>
        </div>
        <!-- end header part -->
    </div>
</body>
</html><!-- Generated by Doxygen 1.8.16 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li><a href="examples.html"><span>Examples</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_127e6aa213d41105176fe0c3bbb2560c.html">LEAF</a></li><li class="navelem"><a class="el" href="dir_2638202b9749e6ce2c919e410b7e2f43.html">Inc</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">leaf-distortion.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*==============================================================================</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> </span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> leaf-distortion.h</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> Created: 25 Oct 2019 10:23:28am</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> Author:  Matthew Wang</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> </span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> ==============================================================================*/</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160; </div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="preprocessor">#ifndef LEAF_DISTORTION_H_INCLUDED</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="preprocessor">#define LEAF_DISTORTION_H_INCLUDED</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160; </div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="preprocessor">#ifdef __cplusplus</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="keyword">extern</span> <span class="stringliteral">&quot;C&quot;</span> {</div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;    </div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;    <span class="comment">//==============================================================================</span></div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;    </div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="preprocessor">#include &quot;leaf-global.h&quot;</span></div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="preprocessor">#include &quot;leaf-mempool.h&quot;</span></div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="preprocessor">#include &quot;leaf-math.h&quot;</span></div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;    </div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;    <span class="comment">//==============================================================================</span></div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;    </div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;    <span class="keyword">typedef</span> <span class="keyword">struct </span>_tSampleReducer</div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;    {</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;        </div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;        tMempool mempool;</div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;        <span class="keywordtype">float</span> invRatio;</div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;        <span class="keywordtype">float</span> hold;</div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;        uint32_t count;</div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;    } _tSampleReducer;</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;    </div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;    <span class="keyword">typedef</span> _tSampleReducer* tSampleReducer;</div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;    </div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;    <span class="keywordtype">void</span>    <a class="code" href="group__tsamplereducer.html#ga4e2aa28e349ce74e863302442581d2c2">tSampleReducer_init</a>    (tSampleReducer* <span class="keyword">const</span>, <a class="code" href="struct_l_e_a_f.html">LEAF</a>* <span class="keyword">const</span> leaf);</div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;    <span class="keywordtype">void</span>    <a class="code" href="group__tsamplereducer.html#ga26f7d760728158cfac165e34ba7ed57f">tSampleReducer_initToPool</a>   (tSampleReducer* <span class="keyword">const</span>, tMempool* <span class="keyword">const</span>);</div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;    <span class="keywordtype">void</span>    <a class="code" href="group__tsamplereducer.html#gae63dd070a3dcf2c58e69f6ccb2e476c1">tSampleReducer_free</a>    (tSampleReducer* <span class="keyword">const</span>);</div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;    </div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;    <span class="keywordtype">float</span>   <a class="code" href="group__tsamplereducer.html#gad2c3b27d31b01f37e3926ae2b7024a71">tSampleReducer_tick</a>    (tSampleReducer* <span class="keyword">const</span>, <span class="keywordtype">float</span> input);</div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;    <span class="keywordtype">void</span>    <a class="code" href="group__tsamplereducer.html#ga21f7231417a132c6ec8c115c99582c68">tSampleReducer_setRatio</a> (tSampleReducer* <span class="keyword">const</span>, <span class="keywordtype">float</span> ratio);</div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;    </div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;    <span class="comment">//==============================================================================</span></div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;    </div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;    <span class="keyword">typedef</span> <span class="keyword">struct </span>_tOversampler</div>
<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;    {</div>
<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;        </div>
<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;        tMempool mempool;</div>
<div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;        <span class="keywordtype">int</span> ratio;</div>
<div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;        <span class="keywordtype">float</span>* pCoeffs;</div>
<div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;        <span class="keywordtype">float</span>* upState;</div>
<div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;        <span class="keywordtype">float</span>* downState;</div>
<div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;        <span class="keywordtype">int</span> numTaps;</div>
<div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;        <span class="keywordtype">int</span> phaseLength;</div>
<div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;    } _tOversampler;</div>
<div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;    </div>
<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;    <span class="keyword">typedef</span> _tOversampler* tOversampler;</div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;    </div>
<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;    <span class="keywordtype">void</span>    <a class="code" href="group__toversampler.html#ga6c89c7875f0f5679ea59430d9a6c61e8">tOversampler_init</a>           (tOversampler* <span class="keyword">const</span>, <span class="keywordtype">int</span> order, <span class="keywordtype">int</span> extraQuality, <a class="code" href="struct_l_e_a_f.html">LEAF</a>* <span class="keyword">const</span> leaf);</div>
<div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;    <span class="keywordtype">void</span>    <a class="code" href="group__toversampler.html#ga65ae3bd40ead130ffc4a81d47bdc61fe">tOversampler_initToPool</a>     (tOversampler* <span class="keyword">const</span>, <span class="keywordtype">int</span> order, <span class="keywordtype">int</span> extraQuality, tMempool* <span class="keyword">const</span>);</div>
<div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;    <span class="keywordtype">void</span>    <a class="code" href="group__toversampler.html#ga809c183c7443aa77ae6233e8c5276218">tOversampler_free</a>           (tOversampler* <span class="keyword">const</span>);</div>
<div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;    </div>
<div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;    <span class="keywordtype">void</span>    <a class="code" href="group__toversampler.html#ga274c2b3d123628c2ecbb3e77d0f9bd3b">tOversampler_upsample</a>       (tOversampler* <span class="keyword">const</span>, <span class="keywordtype">float</span> input, <span class="keywordtype">float</span>* output);</div>
<div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;    <span class="keywordtype">float</span>   <a class="code" href="group__toversampler.html#ga36a0bca206cb86ac529495bf0f1e487d">tOversampler_downsample</a>     (tOversampler* <span class="keyword">const</span> os, <span class="keywordtype">float</span>* input);</div>
<div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;    <span class="keywordtype">float</span>   <a class="code" href="group__toversampler.html#ga8be1bb7f1f763de87c6e02f02b5d977f">tOversampler_tick</a>           (tOversampler* <span class="keyword">const</span>, <span class="keywordtype">float</span> input, <span class="keywordtype">float</span>* oversample, <span class="keywordtype">float</span> (*effectTick)(<span class="keywordtype">float</span>));</div>
<div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;    <span class="keywordtype">int</span>     <a class="code" href="group__toversampler.html#gaa511cdb16fe967cf40000127319d9f0c">tOversampler_getLatency</a>     (tOversampler* <span class="keyword">const</span> os);</div>
<div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;    </div>
<div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;    <span class="comment">//==============================================================================</span></div>
<div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;    </div>
<div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;    <span class="keyword">typedef</span> <span class="keyword">struct </span>_tLockhartWavefolder</div>
<div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;    {</div>
<div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;        </div>
<div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;        tMempool mempool;</div>
<div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;        </div>
<div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;        <span class="keywordtype">double</span> Ln1;</div>
<div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;        <span class="keywordtype">double</span> Fn1;</div>
<div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;        <span class="keywordtype">double</span> xn1;</div>
<div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160; </div>
<div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;        <span class="keywordtype">double</span> RL;</div>
<div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;        <span class="keywordtype">double</span> R;</div>
<div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;        <span class="keywordtype">double</span> VT;</div>
<div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;        <span class="keywordtype">double</span> Is;</div>
<div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160; </div>
<div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;        <span class="keywordtype">double</span> a;</div>
<div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;        <span class="keywordtype">double</span> b;</div>
<div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;        <span class="keywordtype">double</span> d;</div>
<div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160; </div>
<div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;        <span class="comment">// Antialiasing error threshold</span></div>
<div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;        <span class="keywordtype">double</span> AAthresh;</div>
<div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;        <span class="keywordtype">double</span> half_a;</div>
<div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160;        <span class="keywordtype">double</span> longthing;</div>
<div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160; </div>
<div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;        <span class="keywordtype">double</span> LambertThresh, w, expw, p, r, s, myerr;</div>
<div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160;        <span class="keywordtype">double</span> l;</div>
<div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160;        <span class="keywordtype">double</span> u, Ln, Fn;</div>
<div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160;        <span class="keywordtype">double</span> tempsDenom;</div>
<div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160;        <span class="keywordtype">double</span> tempErrDenom;</div>
<div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160;        <span class="keywordtype">double</span> tempOutDenom;</div>
<div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160; </div>
<div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;    } _tLockhartWavefolder;</div>
<div class="line"><a name="l00202"></a><span class="lineno">  202</span>&#160;    </div>
<div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160;    <span class="keyword">typedef</span> _tLockhartWavefolder* tLockhartWavefolder;</div>
<div class="line"><a name="l00204"></a><span class="lineno">  204</span>&#160;    </div>
<div class="line"><a name="l00205"></a><span class="lineno">  205</span>&#160;    <span class="keywordtype">void</span>    <a class="code" href="group__tlockhartwavefolder.html#gaaaccced3a742e99031ec5aa09604e376">tLockhartWavefolder_init</a>    (tLockhartWavefolder* <span class="keyword">const</span>, <a class="code" href="struct_l_e_a_f.html">LEAF</a>* <span class="keyword">const</span> leaf);</div>
<div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160;    <span class="keywordtype">void</span>    <a class="code" href="group__tlockhartwavefolder.html#gab130d6243f2c51fe55f1e23e2a7f65ff">tLockhartWavefolder_initToPool</a>   (tLockhartWavefolder* <span class="keyword">const</span>, tMempool* <span class="keyword">const</span>);</div>
<div class="line"><a name="l00207"></a><span class="lineno">  207</span>&#160;    <span class="keywordtype">void</span>    <a class="code" href="group__tlockhartwavefolder.html#ga1d6c822538b7fd10b36d137aec039e58">tLockhartWavefolder_free</a>    (tLockhartWavefolder* <span class="keyword">const</span>);</div>
<div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160;    </div>
<div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160;    <span class="keywordtype">float</span>   <a class="code" href="group__tlockhartwavefolder.html#gaaa9ddfb64262aa97804144c96d2d400f">tLockhartWavefolder_tick</a>    (tLockhartWavefolder* <span class="keyword">const</span>, <span class="keywordtype">float</span> samp);</div>
<div class="line"><a name="l00210"></a><span class="lineno">  210</span>&#160; </div>
<div class="line"><a name="l00211"></a><span class="lineno">  211</span>&#160;    <span class="comment">//==============================================================================</span></div>
<div class="line"><a name="l00212"></a><span class="lineno">  212</span>&#160; </div>
<div class="line"><a name="l00259"></a><span class="lineno">  259</span>&#160;    <span class="keyword">typedef</span> <span class="keyword">struct </span>_tCrusher</div>
<div class="line"><a name="l00260"></a><span class="lineno">  260</span>&#160;    {</div>
<div class="line"><a name="l00261"></a><span class="lineno">  261</span>&#160;        </div>
<div class="line"><a name="l00262"></a><span class="lineno">  262</span>&#160;        tMempool mempool;</div>
<div class="line"><a name="l00263"></a><span class="lineno">  263</span>&#160;        </div>
<div class="line"><a name="l00264"></a><span class="lineno">  264</span>&#160;        <span class="keywordtype">float</span> srr;</div>
<div class="line"><a name="l00265"></a><span class="lineno">  265</span>&#160;        <span class="keywordtype">float</span> mult, div;</div>
<div class="line"><a name="l00266"></a><span class="lineno">  266</span>&#160;        <span class="keywordtype">float</span> rnd;</div>
<div class="line"><a name="l00267"></a><span class="lineno">  267</span>&#160;        </div>
<div class="line"><a name="l00268"></a><span class="lineno">  268</span>&#160;        uint32_t  op; <span class="comment">//which bitwise operation (0-7)</span></div>
<div class="line"><a name="l00269"></a><span class="lineno">  269</span>&#160;        </div>
<div class="line"><a name="l00270"></a><span class="lineno">  270</span>&#160;        <span class="keywordtype">float</span> gain;</div>
<div class="line"><a name="l00271"></a><span class="lineno">  271</span>&#160;        tSampleReducer sReducer;</div>
<div class="line"><a name="l00272"></a><span class="lineno">  272</span>&#160;        </div>
<div class="line"><a name="l00273"></a><span class="lineno">  273</span>&#160;    } _tCrusher;</div>
<div class="line"><a name="l00274"></a><span class="lineno">  274</span>&#160;    </div>
<div class="line"><a name="l00275"></a><span class="lineno">  275</span>&#160;    <span class="keyword">typedef</span> _tCrusher* tCrusher;</div>
<div class="line"><a name="l00276"></a><span class="lineno">  276</span>&#160;    </div>
<div class="line"><a name="l00277"></a><span class="lineno">  277</span>&#160;    <span class="keywordtype">void</span>    <a class="code" href="group__tcrusher.html#gafd391e483eb15ab1e220867b2bc37537">tCrusher_init</a>    (tCrusher* <span class="keyword">const</span>, <a class="code" href="struct_l_e_a_f.html">LEAF</a>* <span class="keyword">const</span> leaf);</div>
<div class="line"><a name="l00278"></a><span class="lineno">  278</span>&#160;    <span class="keywordtype">void</span>    <a class="code" href="group__tcrusher.html#ga7ee1052fbd8183d322cc6513e563c0af">tCrusher_initToPool</a>   (tCrusher* <span class="keyword">const</span>, tMempool* <span class="keyword">const</span>);</div>
<div class="line"><a name="l00279"></a><span class="lineno">  279</span>&#160;    <span class="keywordtype">void</span>    <a class="code" href="group__tcrusher.html#gaa9dbb4f12f21f015b4f322be6de511c6">tCrusher_free</a>    (tCrusher* <span class="keyword">const</span>);</div>
<div class="line"><a name="l00280"></a><span class="lineno">  280</span>&#160;    </div>
<div class="line"><a name="l00281"></a><span class="lineno">  281</span>&#160;    <span class="keywordtype">float</span>   <a class="code" href="group__tcrusher.html#gabc887b903fc48ac650174402a8c74533">tCrusher_tick</a>    (tCrusher* <span class="keyword">const</span>, <span class="keywordtype">float</span> input);</div>
<div class="line"><a name="l00282"></a><span class="lineno">  282</span>&#160;    <span class="keywordtype">void</span>    <a class="code" href="group__tcrusher.html#gaaf3aba23313797b2e72384d9bd26bc4f">tCrusher_setOperation</a> (tCrusher* <span class="keyword">const</span>, <span class="keywordtype">float</span> op);</div>
<div class="line"><a name="l00283"></a><span class="lineno">  283</span>&#160;    <span class="keywordtype">void</span>    <a class="code" href="group__tcrusher.html#gaef65521d221f1bd3654793ae9441cd45">tCrusher_setQuality</a> (tCrusher* <span class="keyword">const</span>, <span class="keywordtype">float</span> val);</div>
<div class="line"><a name="l00284"></a><span class="lineno">  284</span>&#160;    <span class="keywordtype">void</span>    <a class="code" href="group__tcrusher.html#ga0e5c86da40325cd15ef654c4558d663b">tCrusher_setRound</a> (tCrusher* <span class="keyword">const</span>, <span class="keywordtype">float</span> rnd);</div>
<div class="line"><a name="l00285"></a><span class="lineno">  285</span>&#160;    <span class="keywordtype">void</span>    <a class="code" href="group__tcrusher.html#ga34c59ae78019c8d903b051fc61b4d019">tCrusher_setSamplingRatio</a> (tCrusher* <span class="keyword">const</span>, <span class="keywordtype">float</span> ratio);</div>
<div class="line"><a name="l00286"></a><span class="lineno">  286</span>&#160;    </div>
<div class="line"><a name="l00287"></a><span class="lineno">  287</span>&#160;    <span class="comment">//==============================================================================</span></div>
<div class="line"><a name="l00288"></a><span class="lineno">  288</span>&#160;    </div>
<div class="line"><a name="l00289"></a><span class="lineno">  289</span>&#160;<span class="preprocessor">#ifdef __cplusplus</span></div>
<div class="line"><a name="l00290"></a><span class="lineno">  290</span>&#160;}</div>
<div class="line"><a name="l00291"></a><span class="lineno">  291</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00292"></a><span class="lineno">  292</span>&#160; </div>
<div class="line"><a name="l00293"></a><span class="lineno">  293</span>&#160;<span class="preprocessor">#endif // LEAF_DISTORTION_H_INCLUDED</span></div>
<div class="line"><a name="l00294"></a><span class="lineno">  294</span>&#160; </div>
<div class="line"><a name="l00295"></a><span class="lineno">  295</span>&#160;<span class="comment">//==============================================================================</span></div>
<div class="line"><a name="l00296"></a><span class="lineno">  296</span>&#160; </div>
<div class="line"><a name="l00297"></a><span class="lineno">  297</span>&#160; </div>
</div><!-- fragment --></div><!-- contents -->
<div class="ttc" id="agroup__tsamplereducer_html_ga4e2aa28e349ce74e863302442581d2c2"><div class="ttname"><a href="group__tsamplereducer.html#ga4e2aa28e349ce74e863302442581d2c2">tSampleReducer_init</a></div><div class="ttdeci">void tSampleReducer_init(tSampleReducer *const, LEAF *const leaf)</div><div class="ttdoc">Initialize a tSampleReducer to the default mempool of a LEAF instance.</div><div class="ttdef"><b>Definition:</b> leaf-distortion.c:25</div></div>
<div class="ttc" id="agroup__tlockhartwavefolder_html_gab130d6243f2c51fe55f1e23e2a7f65ff"><div class="ttname"><a href="group__tlockhartwavefolder.html#gab130d6243f2c51fe55f1e23e2a7f65ff">tLockhartWavefolder_initToPool</a></div><div class="ttdeci">void tLockhartWavefolder_initToPool(tLockhartWavefolder *const, tMempool *const)</div><div class="ttdoc">Initialize a tLockhartWavefolder to a specified mempool.</div><div class="ttdef"><b>Definition:</b> leaf-distortion.c:321</div></div>
<div class="ttc" id="agroup__tsamplereducer_html_ga26f7d760728158cfac165e34ba7ed57f"><div class="ttname"><a href="group__tsamplereducer.html#ga26f7d760728158cfac165e34ba7ed57f">tSampleReducer_initToPool</a></div><div class="ttdeci">void tSampleReducer_initToPool(tSampleReducer *const, tMempool *const)</div><div class="ttdoc">Initialize a tSampleReducer to a specified mempool.</div><div class="ttdef"><b>Definition:</b> leaf-distortion.c:30</div></div>
<div class="ttc" id="agroup__tlockhartwavefolder_html_gaaa9ddfb64262aa97804144c96d2d400f"><div class="ttname"><a href="group__tlockhartwavefolder.html#gaaa9ddfb64262aa97804144c96d2d400f">tLockhartWavefolder_tick</a></div><div class="ttdeci">float tLockhartWavefolder_tick(tLockhartWavefolder *const, float samp)</div><div class="ttdef"><b>Definition:</b> leaf-distortion.c:462</div></div>
<div class="ttc" id="agroup__toversampler_html_ga6c89c7875f0f5679ea59430d9a6c61e8"><div class="ttname"><a href="group__toversampler.html#ga6c89c7875f0f5679ea59430d9a6c61e8">tOversampler_init</a></div><div class="ttdeci">void tOversampler_init(tOversampler *const, int order, int extraQuality, LEAF *const leaf)</div><div class="ttdoc">Initialize a tOversampler to the default mempool of a LEAF instance.</div><div class="ttdef"><b>Definition:</b> leaf-distortion.c:75</div></div>
<div class="ttc" id="agroup__tcrusher_html_ga34c59ae78019c8d903b051fc61b4d019"><div class="ttname"><a href="group__tcrusher.html#ga34c59ae78019c8d903b051fc61b4d019">tCrusher_setSamplingRatio</a></div><div class="ttdeci">void tCrusher_setSamplingRatio(tCrusher *const, float ratio)</div><div class="ttdef"><b>Definition:</b> leaf-distortion.c:634</div></div>
<div class="ttc" id="agroup__tcrusher_html_ga0e5c86da40325cd15ef654c4558d663b"><div class="ttname"><a href="group__tcrusher.html#ga0e5c86da40325cd15ef654c4558d663b">tCrusher_setRound</a></div><div class="ttdeci">void tCrusher_setRound(tCrusher *const, float rnd)</div><div class="ttdef"><b>Definition:</b> leaf-distortion.c:628</div></div>
<div class="ttc" id="agroup__tcrusher_html_gabc887b903fc48ac650174402a8c74533"><div class="ttname"><a href="group__tcrusher.html#gabc887b903fc48ac650174402a8c74533">tCrusher_tick</a></div><div class="ttdeci">float tCrusher_tick(tCrusher *const, float input)</div><div class="ttdef"><b>Definition:</b> leaf-distortion.c:585</div></div>
<div class="ttc" id="agroup__tlockhartwavefolder_html_gaaaccced3a742e99031ec5aa09604e376"><div class="ttname"><a href="group__tlockhartwavefolder.html#gaaaccced3a742e99031ec5aa09604e376">tLockhartWavefolder_init</a></div><div class="ttdeci">void tLockhartWavefolder_init(tLockhartWavefolder *const, LEAF *const leaf)</div><div class="ttdoc">Initialize a tLockhartWavefolder to the default mempool of a LEAF instance.</div><div class="ttdef"><b>Definition:</b> leaf-distortion.c:316</div></div>
<div class="ttc" id="agroup__tcrusher_html_gaaf3aba23313797b2e72384d9bd26bc4f"><div class="ttname"><a href="group__tcrusher.html#gaaf3aba23313797b2e72384d9bd26bc4f">tCrusher_setOperation</a></div><div class="ttdeci">void tCrusher_setOperation(tCrusher *const, float op)</div><div class="ttdef"><b>Definition:</b> leaf-distortion.c:609</div></div>
<div class="ttc" id="agroup__tsamplereducer_html_ga21f7231417a132c6ec8c115c99582c68"><div class="ttname"><a href="group__tsamplereducer.html#ga21f7231417a132c6ec8c115c99582c68">tSampleReducer_setRatio</a></div><div class="ttdeci">void tSampleReducer_setRatio(tSampleReducer *const, float ratio)</div><div class="ttdef"><b>Definition:</b> leaf-distortion.c:62</div></div>
<div class="ttc" id="agroup__toversampler_html_ga809c183c7443aa77ae6233e8c5276218"><div class="ttname"><a href="group__toversampler.html#ga809c183c7443aa77ae6233e8c5276218">tOversampler_free</a></div><div class="ttdeci">void tOversampler_free(tOversampler *const)</div><div class="ttdoc">Free a tOversampler from its mempool.</div><div class="ttdef"><b>Definition:</b> leaf-distortion.c:101</div></div>
<div class="ttc" id="agroup__tcrusher_html_ga7ee1052fbd8183d322cc6513e563c0af"><div class="ttname"><a href="group__tcrusher.html#ga7ee1052fbd8183d322cc6513e563c0af">tCrusher_initToPool</a></div><div class="ttdeci">void tCrusher_initToPool(tCrusher *const, tMempool *const)</div><div class="ttdoc">Initialize a tCrusher to a specified mempool.</div><div class="ttdef"><b>Definition:</b> leaf-distortion.c:563</div></div>
<div class="ttc" id="agroup__toversampler_html_ga36a0bca206cb86ac529495bf0f1e487d"><div class="ttname"><a href="group__toversampler.html#ga36a0bca206cb86ac529495bf0f1e487d">tOversampler_downsample</a></div><div class="ttdeci">float tOversampler_downsample(tOversampler *const os, float *input)</div><div class="ttdef"><b>Definition:</b> leaf-distortion.c:217</div></div>
<div class="ttc" id="agroup__toversampler_html_ga274c2b3d123628c2ecbb3e77d0f9bd3b"><div class="ttname"><a href="group__toversampler.html#ga274c2b3d123628c2ecbb3e77d0f9bd3b">tOversampler_upsample</a></div><div class="ttdeci">void tOversampler_upsample(tOversampler *const, float input, float *output)</div><div class="ttdef"><b>Definition:</b> leaf-distortion.c:124</div></div>
<div class="ttc" id="agroup__toversampler_html_ga8be1bb7f1f763de87c6e02f02b5d977f"><div class="ttname"><a href="group__toversampler.html#ga8be1bb7f1f763de87c6e02f02b5d977f">tOversampler_tick</a></div><div class="ttdeci">float tOversampler_tick(tOversampler *const, float input, float *oversample, float(*effectTick)(float))</div><div class="ttdef"><b>Definition:</b> leaf-distortion.c:110</div></div>
<div class="ttc" id="agroup__tcrusher_html_gaa9dbb4f12f21f015b4f322be6de511c6"><div class="ttname"><a href="group__tcrusher.html#gaa9dbb4f12f21f015b4f322be6de511c6">tCrusher_free</a></div><div class="ttdeci">void tCrusher_free(tCrusher *const)</div><div class="ttdoc">Free a tCrusher from its mempool.</div><div class="ttdef"><b>Definition:</b> leaf-distortion.c:577</div></div>
<div class="ttc" id="agroup__tsamplereducer_html_gad2c3b27d31b01f37e3926ae2b7024a71"><div class="ttname"><a href="group__tsamplereducer.html#gad2c3b27d31b01f37e3926ae2b7024a71">tSampleReducer_tick</a></div><div class="ttdeci">float tSampleReducer_tick(tSampleReducer *const, float input)</div><div class="ttdef"><b>Definition:</b> leaf-distortion.c:48</div></div>
<div class="ttc" id="agroup__tcrusher_html_gaef65521d221f1bd3654793ae9441cd45"><div class="ttname"><a href="group__tcrusher.html#gaef65521d221f1bd3654793ae9441cd45">tCrusher_setQuality</a></div><div class="ttdeci">void tCrusher_setQuality(tCrusher *const, float val)</div><div class="ttdef"><b>Definition:</b> leaf-distortion.c:616</div></div>
<div class="ttc" id="agroup__toversampler_html_ga65ae3bd40ead130ffc4a81d47bdc61fe"><div class="ttname"><a href="group__toversampler.html#ga65ae3bd40ead130ffc4a81d47bdc61fe">tOversampler_initToPool</a></div><div class="ttdeci">void tOversampler_initToPool(tOversampler *const, int order, int extraQuality, tMempool *const)</div><div class="ttdoc">Initialize a tOversampler to a specified mempool.</div><div class="ttdef"><b>Definition:</b> leaf-distortion.c:80</div></div>
<div class="ttc" id="astruct_l_e_a_f_html"><div class="ttname"><a href="struct_l_e_a_f.html">LEAF</a></div><div class="ttdoc">Struct for an instance of LEAF.</div><div class="ttdef"><b>Definition:</b> leaf-global.h:31</div></div>
<div class="ttc" id="agroup__toversampler_html_gaa511cdb16fe967cf40000127319d9f0c"><div class="ttname"><a href="group__toversampler.html#gaa511cdb16fe967cf40000127319d9f0c">tOversampler_getLatency</a></div><div class="ttdeci">int tOversampler_getLatency(tOversampler *const os)</div><div class="ttdef"><b>Definition:</b> leaf-distortion.c:301</div></div>
<div class="ttc" id="agroup__tlockhartwavefolder_html_ga1d6c822538b7fd10b36d137aec039e58"><div class="ttname"><a href="group__tlockhartwavefolder.html#ga1d6c822538b7fd10b36d137aec039e58">tLockhartWavefolder_free</a></div><div class="ttdeci">void tLockhartWavefolder_free(tLockhartWavefolder *const)</div><div class="ttdoc">Free a tLockhartWavefolder from its mempool.</div><div class="ttdef"><b>Definition:</b> leaf-distortion.c:366</div></div>
<div class="ttc" id="agroup__tcrusher_html_gafd391e483eb15ab1e220867b2bc37537"><div class="ttname"><a href="group__tcrusher.html#gafd391e483eb15ab1e220867b2bc37537">tCrusher_init</a></div><div class="ttdeci">void tCrusher_init(tCrusher *const, LEAF *const leaf)</div><div class="ttdoc">Initialize a tCrusher to the default mempool of a LEAF instance.</div><div class="ttdef"><b>Definition:</b> leaf-distortion.c:558</div></div>
<div class="ttc" id="agroup__tsamplereducer_html_gae63dd070a3dcf2c58e69f6ccb2e476c1"><div class="ttname"><a href="group__tsamplereducer.html#gae63dd070a3dcf2c58e69f6ccb2e476c1">tSampleReducer_free</a></div><div class="ttdeci">void tSampleReducer_free(tSampleReducer *const)</div><div class="ttdoc">Free a tSampleReducer from its mempool.</div><div class="ttdef"><b>Definition:</b> leaf-distortion.c:41</div></div>
<!-- HTML footer for doxygen 1.8.18-->
<!-- start footer part -->
</body>
</html>
